// need the RMI stuff
import java.rmi.*;

/**
 * Interface that represents a server that allows an upload
 * of a file
 **/
public interface FileReceiver extends Remote 
{
	/**
	 * Set the directory to upload files to
	 * @param directory The directory to place files in
	 * @exception RemoteException to remote object
	 **/
	public void setDirectory( String directory ) throws RemoteException;
   
	/**
     * Receive a file from a remote source
     * @param packet The file packet to receive
     * @exception RemoteException if something bad happens
     **/
	public void receiveFile( FilePacket packet ) throws RemoteException;
}